<%@page import="el.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
	User user = new User();
	user.setUser_name("George");
	user.setUser_id(4);
	request.setAttribute("userel.use", user);
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title>el中的隐含对象</title>
</head>
<body>
${pageContext.request.requestURI}<br/><!-- 相当于 -->
${pageContext.request.requestURI}<br/>
${pageScope["user.test"].name}<br/>
${param.type}<br/>
${header["User-Agent"]}<br/>
${cookie.JSESSIONID.value}<br/>
${initParam.testinitparam}<br/>
<%=application.getInitParameter("testinitparam") %>

</body>
</html>